package io.github.lee.app.unsplash.repository.api

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import io.github.lee.app.unsplash.repository.domain.Photo
import io.github.lee.app.unsplash.repository.domain.UnsplashResponse
import retrofit2.Retrofit
import retrofit2.http.GET
import retrofit2.http.Query



interface PhotoApi {

    @GET("photos")
    suspend fun photos(
        @Query("page") page: Int,
        @Query("per_page") size: Int,
        @Query("order_by") orderBy: String = "latest",
    ): UnsplashResponse<List<Photo>>

}